package router

import (
	"api/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("v1")
	{
		user := v1.Group("user")
		{
			user.POST("login", handler.Login)
			user.POST("image", handler.Image)
		}
		v1.GET("ws", handler.Chat)
		List := v1.Group("list")
		{
			List.GET("institutionsList", handler.InstitutionsList)
			List.POST("TeamsList", handler.TeamsList)
			List.POST("DockerList", handler.DockerList)
			List.POST("DockerOne", handler.DockerOne)
		}
	}
}
